﻿namespace WMS6.Web.CommonMethodServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, DataContract(Name="CustGridviewInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class CustGridviewInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private int ColumnIndexField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string CssClassField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string FooterTextField;
        [OptionalField]
        private string FunctionDescrField;
        [OptionalField]
        private string FunctionIDField;
        [OptionalField]
        private string GirdviewIDField;
        [OptionalField]
        private string HeaderTextField;
        [OptionalField]
        private int PageSizeField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private int SeqNoField;
        [OptionalField]
        private string Udf1Field;
        [OptionalField]
        private string Udf2Field;
        [OptionalField]
        private string Udf3Field;
        [OptionalField]
        private string Udf4Field;
        [OptionalField]
        private string Udf5Field;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string UserIDField;
        [OptionalField]
        private int WidthField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public int ColumnIndex
        {
            get
            {
                return this.ColumnIndexField;
            }
            set
            {
                if (!this.ColumnIndexField.Equals(value))
                {
                    this.ColumnIndexField = value;
                    this.RaisePropertyChanged("ColumnIndex");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string CssClass
        {
            get
            {
                return this.CssClassField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CssClassField, value))
                {
                    this.CssClassField = value;
                    this.RaisePropertyChanged("CssClass");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string FooterText
        {
            get
            {
                return this.FooterTextField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FooterTextField, value))
                {
                    this.FooterTextField = value;
                    this.RaisePropertyChanged("FooterText");
                }
            }
        }

        [DataMember]
        public string FunctionDescr
        {
            get
            {
                return this.FunctionDescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FunctionDescrField, value))
                {
                    this.FunctionDescrField = value;
                    this.RaisePropertyChanged("FunctionDescr");
                }
            }
        }

        [DataMember]
        public string FunctionID
        {
            get
            {
                return this.FunctionIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.FunctionIDField, value))
                {
                    this.FunctionIDField = value;
                    this.RaisePropertyChanged("FunctionID");
                }
            }
        }

        [DataMember]
        public string GirdviewID
        {
            get
            {
                return this.GirdviewIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.GirdviewIDField, value))
                {
                    this.GirdviewIDField = value;
                    this.RaisePropertyChanged("GirdviewID");
                }
            }
        }

        [DataMember]
        public string HeaderText
        {
            get
            {
                return this.HeaderTextField;
            }
            set
            {
                if (!object.ReferenceEquals(this.HeaderTextField, value))
                {
                    this.HeaderTextField = value;
                    this.RaisePropertyChanged("HeaderText");
                }
            }
        }

        [DataMember]
        public int PageSize
        {
            get
            {
                return this.PageSizeField;
            }
            set
            {
                if (!this.PageSizeField.Equals(value))
                {
                    this.PageSizeField = value;
                    this.RaisePropertyChanged("PageSize");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public int SeqNo
        {
            get
            {
                return this.SeqNoField;
            }
            set
            {
                if (!this.SeqNoField.Equals(value))
                {
                    this.SeqNoField = value;
                    this.RaisePropertyChanged("SeqNo");
                }
            }
        }

        [DataMember]
        public string Udf1
        {
            get
            {
                return this.Udf1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf1Field, value))
                {
                    this.Udf1Field = value;
                    this.RaisePropertyChanged("Udf1");
                }
            }
        }

        [DataMember]
        public string Udf2
        {
            get
            {
                return this.Udf2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf2Field, value))
                {
                    this.Udf2Field = value;
                    this.RaisePropertyChanged("Udf2");
                }
            }
        }

        [DataMember]
        public string Udf3
        {
            get
            {
                return this.Udf3Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf3Field, value))
                {
                    this.Udf3Field = value;
                    this.RaisePropertyChanged("Udf3");
                }
            }
        }

        [DataMember]
        public string Udf4
        {
            get
            {
                return this.Udf4Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf4Field, value))
                {
                    this.Udf4Field = value;
                    this.RaisePropertyChanged("Udf4");
                }
            }
        }

        [DataMember]
        public string Udf5
        {
            get
            {
                return this.Udf5Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.Udf5Field, value))
                {
                    this.Udf5Field = value;
                    this.RaisePropertyChanged("Udf5");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string UserID
        {
            get
            {
                return this.UserIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UserIDField, value))
                {
                    this.UserIDField = value;
                    this.RaisePropertyChanged("UserID");
                }
            }
        }

        [DataMember]
        public int Width
        {
            get
            {
                return this.WidthField;
            }
            set
            {
                if (!this.WidthField.Equals(value))
                {
                    this.WidthField = value;
                    this.RaisePropertyChanged("Width");
                }
            }
        }
    }
}

